<template>
    <div>
        请输入评论：<input type="text" v-model="cs">
        <button @click="get_request">提交</button>
    </div>
</template>



<script>
export default {
    data(){
        return{
            cs:'',
            pl_list:[],

        }
    },
    methods: {
        // 提交
        get_request(){
            this.pl_list.push(this.cs)
            if(localStorage.getItem('pl')){
                this.pl_list = JSON.parse(localStorage.getItem('pl'))
            }else{
                localStorage.setItem('pl',JSON.stringify(this.pl_list))
            }
            

            this.$router.push('/myorder')
        }
    },
}
</script>